package com.springboot.java.design.singleton;

/**
 * @Author: TongRui乀
 * @Date: 2019/3/5 14:59
 * @description： 嵌套类式的懒汉单例
 */
public class LazySingletonStatic {

    private LazySingletonStatic(){}

    private static class InnerClass{
        private static LazySingletonStatic instance = new LazySingletonStatic();
    }

    public static LazySingletonStatic getInstance(){
        return InnerClass.instance;
    }
}
